package yl.hs.bmipfull.pojo.vehiclemanage;

import org.springframework.lang.Nullable;
import yl.hs.bmipfull.annotations.DBField;
import yl.hs.bmipfull.annotations.DBTable;
import yl.hs.bmipfull.pojo.BaseEntity;

import java.util.Date;

/**
 * @author 韩纪旺
 * @apiNote 车辆排班变更记录表实体类
 * @since 2022年09月14日 17时09分51秒
 */
@DBTable(disName = "车辆排班变更记录表", mapCode = "rostering_change")
public class RosteringChangeEntity extends BaseEntity {

    /**
     * 主键
     */
    @Nullable
    private Long id;
    /**
     * 排班编号
     */
    @DBField(disName = "车辆排班变更记录表编号", mapCode = "sn", isSerialNumber = true, isRequire = true, snPrefix = "PBXX")
    private String sn;
    /**
     * 车辆编号
     */
    @DBField(disName = "车辆编号",mapCode = "truckSN")
    private String truckSN;
    /**
     * 车辆牌号
     */
    @DBField(disName = "车辆牌号",mapCode = "truckPlate")
    private String truckPlate;
    /**
     * 变更记录
     */
    @DBField(disName = "变更记录",mapCode = "changeRecord")
    private String changeRecord;
    /**
     * 排班变更日期
     */
    @DBField(disName = "排班变更日期",mapCode = "rosteringChangeTime")
    private Date rosteringChangeTime;
    /**
     * 状态
     */
    @DBField(disName = "状态",mapCode = "state")
    private Short state;
    /**
     * 司机编号
     */
    @DBField(disName = "司机编号",mapCode = "driverSN")
    private String driverSN;
    /**
     * 司机名称
     */
    @DBField(disName = "司机名称",mapCode = "driverName")
    private String driverName;
    /**
     * 前一个司机编号
     */
    @DBField(disName = "前一个司机编号",mapCode = "oldDriverSN")
    private String oldDriverSN;
    /**
     * 前一个司机名称
     */
    @DBField(disName = "前一个司机名称",mapCode = "oldDriverName")
    private String oldDriverName;
    /**
     * 备注
     */
    @DBField(disName = "备注",mapCode = "remark")
    private String remark;
    /**
     * 车辆状态
     */
    @DBField(disName = "车辆状态",mapCode = "truckState")
    private short truckState;


    public short getTruckState() {
        return truckState;
    }

    public void setTruckState(short truckState) {
        this.truckState = truckState;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return this.id;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public String getSn() {
        return this.sn;
    }

    public void setTruckSN(String truckSN) {
        this.truckSN = truckSN;
    }

    public String getTruckSN() {
        return this.truckSN;
    }

    public void setTruckPlate(String truckPlate) {
        this.truckPlate = truckPlate;
    }

    public String getTruckPlate() {
        return this.truckPlate;
    }

    public void setChangeRecord(String changeRecord) {
        this.changeRecord = changeRecord;
    }

    public String getChangeRecord() {
        return this.changeRecord;
    }

    public void setRosteringChangeTime(Date rosteringChangeTime) {
        this.rosteringChangeTime = rosteringChangeTime;
    }

    public Date getRosteringChangeTime() {
        return this.rosteringChangeTime;
    }

    public void setState(Short state) {
        this.state = state;
    }

    public Short getState() {
        return this.state;
    }

    public void setDriverSN(String driverSN) {
        this.driverSN = driverSN;
    }

    public String getDriverSN() {
        return this.driverSN;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getDriverName() {
        return this.driverName;
    }

    public void setOldDriverSN(String oldDriverSN) {
        this.oldDriverSN = oldDriverSN;
    }

    public String getOldDriverSN() {
        return this.oldDriverSN;
    }

    public void setOldDriverName(String oldDriverName) {
        this.oldDriverName = oldDriverName;
    }

    public String getOldDriverName() {
        return this.oldDriverName;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getRemark() {
        return this.remark;
    }

}